﻿using System;
using UnityEngine;

namespace IllusionUtility.SetUtility
{
	// Token: 0x0200064F RID: 1615
	public static class TransformRotationEx
	{
		// Token: 0x0600266D RID: 9837 RVA: 0x00147A14 File Offset: 0x00145C14
		public static void SetRotationX(this Transform transform, float x)
		{
			Vector3 euler = new Vector3(x, transform.rotation.eulerAngles.y, transform.rotation.eulerAngles.z);
			transform.rotation = Quaternion.Euler(euler);
		}

		// Token: 0x0600266E RID: 9838 RVA: 0x00147A64 File Offset: 0x00145C64
		public static void SetRotationY(this Transform transform, float y)
		{
			Vector3 euler = new Vector3(transform.rotation.eulerAngles.x, y, transform.rotation.eulerAngles.z);
			transform.rotation = Quaternion.Euler(euler);
		}

		// Token: 0x0600266F RID: 9839 RVA: 0x00147AB4 File Offset: 0x00145CB4
		public static void SetRotationZ(this Transform transform, float z)
		{
			Vector3 euler = new Vector3(transform.rotation.eulerAngles.x, transform.rotation.eulerAngles.y, z);
			transform.rotation = Quaternion.Euler(euler);
		}

		// Token: 0x06002670 RID: 9840 RVA: 0x00147B04 File Offset: 0x00145D04
		public static void SetRotation(this Transform transform, float x, float y, float z)
		{
			Vector3 euler = new Vector3(x, y, z);
			transform.rotation = Quaternion.Euler(euler);
		}

		// Token: 0x06002671 RID: 9841 RVA: 0x00147B28 File Offset: 0x00145D28
		public static void SetLocalRotationX(this Transform transform, float x)
		{
			Vector3 euler = new Vector3(x, transform.localRotation.eulerAngles.y, transform.localRotation.eulerAngles.z);
			transform.localRotation = Quaternion.Euler(euler);
		}

		// Token: 0x06002672 RID: 9842 RVA: 0x00147B78 File Offset: 0x00145D78
		public static void SetLocalRotationY(this Transform transform, float y)
		{
			Vector3 euler = new Vector3(transform.localRotation.eulerAngles.x, y, transform.localRotation.eulerAngles.z);
			transform.localRotation = Quaternion.Euler(euler);
		}

		// Token: 0x06002673 RID: 9843 RVA: 0x00147BC8 File Offset: 0x00145DC8
		public static void SetLocalRotationZ(this Transform transform, float z)
		{
			Vector3 euler = new Vector3(transform.localRotation.eulerAngles.x, transform.localRotation.eulerAngles.y, z);
			transform.localRotation = Quaternion.Euler(euler);
		}

		// Token: 0x06002674 RID: 9844 RVA: 0x00147C18 File Offset: 0x00145E18
		public static void SetLocalRotation(this Transform transform, float x, float y, float z)
		{
			Vector3 euler = new Vector3(x, y, z);
			transform.localRotation = Quaternion.Euler(euler);
		}
	}
}
